package com.group.Controller;

import cn.hutool.json.JSONObject;
import com.group.Enity.ComplaintType;
import com.group.Service.ComplaintTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("complainttype")
public class ComplaintTypeController {

    @Autowired
    private ComplaintTypeService complaintTypeService;

    @ResponseBody
    @RequestMapping("queryAll")
    public List queryAll()
    {
        List<ComplaintType> list = complaintTypeService.getComplaintTypes();
        return list;
    }

}
